package com.fkdx.webman.config;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
public class WebConfig implements WebMvcConfigurer {

//    @Bean
//    public HttpServiceScannerConfigurer httpServiceScannerConfigurer() {
//        HttpServiceScannerConfigurer httpServiceScannerConfigurer = new HttpServiceScannerConfigurer();
//        httpServiceScannerConfigurer.setOkHttpClient(new DefaultOkHttpClientFactoryBean().getObject());
//        httpServiceScannerConfigurer.setPackageNames("com.fkdx.service");
//        httpServiceScannerConfigurer.setConverterFactories(Lists.newArrayList(new StringConverterFactory()));
//        // 设置全局的ApiBaseUrl，如果@HttpService也设置了ApiBaseUrl，那么@HttpService配置的ApiBaseUrl优先级更高
//        httpServiceScannerConfigurer.setApiBaseUrl("https://api.weixin.qq.com");
//        return httpServiceScannerConfigurer;
//    }
//
//    @Override
//    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/login.html").setViewName("login");
//    }

}
